#include <stdio.h>

int main() {
  char name[1024];
  char qq[1024];
  scanf("%1020s", name);
  scanf("%1020s", qq);

  for (int i = 0; i < strlen(name); i++) {
    if ('a' <= name[i] && name[i] <= 'z') {
      name[i] -= 32;
    }
  }

  printf("Name:%s"
       "\n"
       "%s@qq.com", name, qq);

}